<div id="vtns_menu" class="clearfix">
    <ul class="nav nav-tabs">
      <li <?php echo ($sf_context->getModuleName() == 'default')?"class='active'":"" ?>>
        <a href="/">Home</a>
      </li>
      <?php
      foreach ($navbars as $navbar)
      {
      ?>
      <li <?php echo (($sf_context->getModuleName() == 'cms' && isset($cms_category_id) && $navbar['cms_category_id'] == $cms_category_id)||($sf_context->getModuleName() == 'applyOnline' && $navbar['alias'] == 'apply_online'))?"class='active'":"" ?>><a href="<?php echo url_for('cms/permalink?cms_category_id='.$navbar['cms_category_id'].'-'.vtnsSEO::getPermalink($navbar['name'])) ?>"><?php echo $navbar['name']?></a></li>
      <?php
      }
      ?>
    </ul>
</div>